import request from '../util/request.js'


export default function wxLogin(jscode,params) {
  return request({
    url: `https://api.weixin.qq.com/sns/${jscode}`,
    method: 'get',
    params
  })
}

export const getBotReply = (params) => {
  return request({
    url: `http://api.tianapi.com/robot/index`,
    method: 'get',
    params
  })
}

export const getGaodeWhether = (params) => {
  return request({
    url: 'https://restapi.amap.com/v3/weather/weatherInfo',
    method: 'get',
    params
  })
}